package com.ynet.middleground.contract.bean;

import javax.validation.constraints.NotBlank;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 文本签验签请求类型
 * @date 2020-04-11 22:52
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "文本签验签请求类", description = "文本签验签请求类")
public class VerifyTextSignReq extends BaseReqObj {

    private static final long serialVersionUID = 650088727376430850L;

    @ApiModelProperty(value = "待验证的文本数据原文", notes = "待验证的文本数据原文", dataType = "String", required = true)
    @NotBlank(message = "文本数据原文不能为空")
    private String srcData;

    @ApiModelProperty(value = "已签名文本结果数据包", notes = "文本签名接口产生的签名结果数据包", dataType = "String", required = true)
    @NotBlank(message = "已签名文本数据结果")
    private String signResult;

}
